package com.wjc.server.dto;


import javax.validation.constraints.NotBlank;

public class ChapterDto {

    private Long id;

    private Long courseId;

    @NotBlank(message = "大章名称不能为空")
    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "ChapterDto{" +
                "id=" + id +
                ", courseId=" + courseId +
                ", name='" + name + '\'' +
                '}';
    }
}